package com.icetech.eom.dao.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.icetech.eom.domain.sys.RolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangzw
 * @since 2018-12-10
 */
public interface RolePermissionDao extends BaseMapper<RolePermission> {

    List<RolePermission> findByPermissionId(@Param("permissionId") Long permissionId);

    List<RolePermission> findByRoleId(@Param("roleId") Long roleId);

    void deleteByRoleId(@Param("roleId") Long roleId);
}
